import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
const sellerpage=()=>import("../views/Sellerpage")
const trendPage=()=>import("../views/TrendPage")
const MapPage=()=>import("../views/MapPage")
const rankpage=()=>import("../views/RankPage")
const hotPage=()=>import("../views/HotPage")
const stockPage=()=>import("../views/StockPage")
const ScreenPage=()=>import("../views/ScreenPage")
const routes=[
  {
    path:'/',
    redirect:'/ScreenPage'
  },
  {
    path:'/sellerpage',
    component:sellerpage
  },
  {
    path:'/ScreenPage',
    component:ScreenPage
  },
  {
    path:'/trendPage',
    component:trendPage
  },
  {
    path:'/MapPage',
    component:MapPage
  },
  {
    path:'/rankpage',
    component:rankpage
  },
  {
    path:'/hotPage',
    component:hotPage
  },
  {
    path:'/stockPage',
    component:stockPage
  }
]

const router = new VueRouter({
  mode:'history',
  routes
})

export default router
